<script setup lang="ts">
definePageMeta({ layout: "admin" });

const input = ref("");
const inputRe = ref("");

let Click = () => {
  console.log(input.value);
  console.log(inputRe.value);
  $api("/revise", {
    method: "post",
    body: {
      password: input.value,
      revisePassword: inputRe.value,
    },
  }).then((res) => {
    console.log(res);
  });
};

onMounted(async () => {});
</script>

<template>
  <AdminContainer>
    <template #header> </template>
    <div>
      原密码：
      <el-input v-model="input" type="password" />
      <br />
      新密码：
      <el-input v-model="inputRe" type="password" />
      <br />
      <el-button @click="Click()">Default</el-button>
    </div>
    <template #footer> </template>
  </AdminContainer>
</template>
